<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set the stream chunk size</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.stream-set-blocking.html">stream_set_blocking</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.stream-set-read-buffer.html">stream_set_read_buffer</a></div>
 <div class="up"><a href="ref.stream.html">Stream 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.stream-set-chunk-size" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">stream_set_chunk_size</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.4.0)</p><p class="refpurpose"><span class="refname">stream_set_chunk_size</span> &mdash; <span class="dc-title">Set the stream chunk size</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.stream-set-chunk-size-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span> <span class="methodname"><strong>stream_set_chunk_size</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$fp</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$chunk_size</code></span>
   )</div>

  <p class="para rdfs-comment">
   Set the stream chunk size.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.stream-set-chunk-size-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>
<em><code class="parameter">fp</code></em></dt>

    <dd>

     <p class="para">
      The target stream.
     </p>
    </dd>

   
   
    <dt>
<em><code class="parameter">chunk_size</code></em></dt>

    <dd>

     <p class="para">
      The desired new chunk size.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.stream-set-chunk-size-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the previous chunk size on success.
  </p>
  <p class="para">
   Will return <strong><code>FALSE</code></strong> if <em><code class="parameter">chunk_size</code></em> is less than 1 or
   greater than <strong><code>PHP_INT_MAX</code></strong>.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.stream-set-chunk-size-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   Will emit an <strong><code>E_WARNING</code></strong> level error if <em><code class="parameter">chunk_size</code></em>
   is less than 1 or greater than <strong><code>PHP_INT_MAX</code></strong>.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.stream-set-blocking.html">stream_set_blocking</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.stream-set-read-buffer.html">stream_set_read_buffer</a></div>
 <div class="up"><a href="ref.stream.html">Stream 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
